.chat-page {
    display: flex;
    height: 100vh;
}

.history-panel {
    width: 200px;
    border-right: 1px solid #ccc;
    padding: 10px;
}

.new-conversation-btn {
    background-color: #e6e6ff;
    border: none;
    padding: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.history-panel ul {
    list-style-type: none;
    padding: 0;
}

.history-panel li {
    padding: 8px;
    cursor: pointer;
}

.history-panel li.active {
    background-color: #f0f0f0;
}

.chat-window {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-width: 0;
    background: #f6f8fa;
}

.message-list {
    flex-grow: 1;
    overflow-y: auto;
}

.message.Qwen3-235B-A22B {
    text-align: right;
}

.message.user {
    text-align: left;
}

.input-area {
    display: flex;
    margin-top: 10px;
}

.input-area input {
    flex-grow: 1;
    padding: 8px;
}

.input-area button {
    padding: 8px;
    margin-left: 10px;
}

.loading-dots span {
    animation: blink 1.4s infinite both;
    font-size: 22px;
    margin-right: 2px;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}